package com.onepower.core.modules.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.onepower.core.domain.response.MatchAdminInfo;
import com.onepower.core.domain.response.SysUserInfo;
import com.onepower.core.modules.repository.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统用户表 Mapper 接口
 * </p>
 *
 * @author kin
 * @since 2018-08-01
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<MatchAdminInfo> selectMatchAdminList(Page<MatchAdminInfo> page, @Param("matchId") Integer matchId);

    List<SysUser> selectUserList(Page<SysUserInfo> page,
                                 @Param("roleKeys") List<String> roleKeys,
                                 @Param("userId") Integer userId);
}